package com.example.androidnovo;

import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.os.Bundle;
import android.widget.Button;

public class Tela1 extends Activity implements OnClickListener {

	Button btChamaTela;
	
	public void onCreate(Bundle icicle){
		super.onCreate(icicle);
		setContentView(R.layout.tela1);
	 	
		btChamaTela = (Button) findViewById(R.tela1.btChamaTela);
		btChamaTela.setOnClickListener(this);	
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if(v==btChamaTela){
			Intent in = new Intent(this,Tela2.class);
			//intent avisa quem chama e quem vai ser chamado
			startActivity(in);
			//
		}
	}
}
